Skip to content

fix: replace hardcoded rgba() colors in cards.css with CSS variables#861

Open
Pcmhacker-piro wants to merge 1 commit into
SAPTARSHI-coder:mainfrom
Pcmhacker-piro:fix/replace-hardcoded-colors-cards-840
Open

fix: replace hardcoded rgba() colors in cards.css with CSS variables#861
Pcmhacker-piro wants to merge 1 commit into
SAPTARSHI-coder:mainfrom
Pcmhacker-piro:fix/replace-hardcoded-colors-cards-840

Conversation

@Pcmhacker-piro
Copy link
Copy Markdown

Closes #840

Pull Request Description

6 hardcoded rgba() and #ffffff values in cards.css break theming.
Replaced with CSS variables defined in core/variables.css using
color-mix() for opacity support.

Type of Change

  • ✨ New animation / hover effect
  • 🧩 New component
  • 📝 Documentation improvement
  • 🐛 Bug fix in an existing submission
  • Other (describe below)

Theming fix — replaces hardcoded colors with CSS variables.

Submission Checklist

N/A — this PR fixes core framework files, not a user submission.

Notes for Maintainer

Alpha channel variables use color-mix(in srgb, ...) which is
supported in all modern browsers (Chrome 111+, Firefox 113+,
Safari 16.2+). No runtime dependencies required.

- Added --ease-glass-bg, --ease-glass-border for glass card background/border
- Added --ease-color-primary-alpha, --ease-color-success-alpha,
  --ease-color-danger-alpha for info/alert card backgrounds
- Updated .ease-card-glass to use CSS variables instead of hardcoded
  rgba(255,255,255) and #ffffff
- Updated .ease-card-info, .ease-card-success-bg, .ease-card-danger-bg
  to use alpha-channel variables

Closes SAPTARSHI-coder#840
@Pcmhacker-piro
Copy link
Copy Markdown
Author

hey @SAPTARSHI-coder i fixed the assign issues so plesae check it

@SAPTARSHI-coder SAPTARSHI-coder added accepted Contribution approved for integration into EaseMotion CSS animation Animation effects, hover interactions, motion ideas, transitions component New UI components (buttons, cards, modals, tooltips, badges) enhancement New feature or request good first issue Good for newcomers GSSoC-26 Official GSSoC 2026 issue gssoc:approved Approved for GSSoC contributions integrated Successfully merged and included in the framework level:intermediate Requires moderate project understanding type:feature New functionality or enhancement labels Jun 2, 2026
@Pcmhacker-piro
Copy link
Copy Markdown
Author

heyy @SAPTARSHI-coder
i fixed the issue so pls check it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

accepted Contribution approved for integration into EaseMotion CSS animation Animation effects, hover interactions, motion ideas, transitions component New UI components (buttons, cards, modals, tooltips, badges) enhancement New feature or request good first issue Good for newcomers gssoc:approved Approved for GSSoC contributions GSSoC-26 Official GSSoC 2026 issue integrated Successfully merged and included in the framework level:intermediate Requires moderate project understanding type:feature New functionality or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

### Glass Card and Info/Alert Cards Use Hardcoded rgba() Colors Instead of CSS Variables

2 participants